/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package javafxapplication1;

import java.io.IOException;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;

/**
 *
 * @author my
 */
public class JavaFXApplication1 extends Application {

    public static String resourceBundleName="javafxapplication1.validation";
    
    @Override
    public void start(Stage primaryStage) {

        FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("ValidationFXML.fxml"),ResourceBundle.getBundle(resourceBundleName));

        try {
            AnchorPane layout = fxmlLoader.load();
            Scene scene = new Scene(layout);
            ValidationFXMLController controller=fxmlLoader.getController();
            controller.setStage(primaryStage);
            primaryStage.setResizable(false);
            primaryStage.setTitle("Excel Data Validation Helper!");
            primaryStage.setScene(scene);
            
            primaryStage.show();

        } catch (IOException ex) {
            Logger.getLogger(JavaFXApplication1.class.getName()).log(Level.SEVERE, null, ex);
        }

    }

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        launch(args);
    }

}
